<template>
    <el-container>
        <el-aside width="200px">
            <el-menu>
                <el-menu-item @click="linkToPlatformSettings">
                    平台数据
                </el-menu-item>
            </el-menu>
        </el-aside>
        <el-main>
            <router-view></router-view>
        </el-main>
    </el-container>
</template>

<script lang="ts">
    import {
        defineComponent
    } from "vue";

    import {
        useRouter
    } from "vue-router";

    export default defineComponent({
        name: "SettingPage",
        setup() {
            const router = useRouter()

            const linkToPlatformSettings = () => {
                router.push({
                    path: '/settings/platforms'
                })
            }

            return {
                linkToPlatformSettings
            }
        },
        mounted() {
            this.linkToPlatformSettings()
        }
    })
</script>

<style>

</style>